import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
      home: Scaffold(
    appBar: AppBar(
      title: const Text("你好flutter"),
    ),
    body: const MyApp(),
  )));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    final size = MediaQuery.of(context).size;
    final SCREEN_WIDTH = size.width;
    return Container(
      width: double.infinity,
      height: 400,
      color: Colors.grey,
      child: Stack(
        children: [
          Positioned(
            left: 0,
            bottom: 0,
            width: SCREEN_WIDTH,
            height: 100,
            child: Container(
              width: 200,
              height: 200,
              color: Colors.lightBlue,
            ),
          ),
          const Positioned(
            right: 0,
            child: Icon(Icons.access_alarm),
          ),
          const Positioned(
            right: 0,
            top: 200,
            child: Text("hello world"),
          ),
        ],
      ),
    );
  }
}
